package com.zzyl.nursing.service;

import cn.hutool.db.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.dto.DeviceDto;
import com.zzyl.nursing.dto.FamilyMemberElderDto;
import com.zzyl.nursing.dto.QueryDeviceDataDto;
import com.zzyl.nursing.vo.FamilyMemberElderVo;
import com.zzyl.nursing.vo.FamilyMemberVo;
import com.zzyl.nursing.vo.QueryDeviceDataVo;
import com.zzyl.nursing.vo.health.PropertyStatusInfoVoList;

import java.util.List;

/**
 * 老人与老人家属关联Service接口
 * 
 * @author alexis
 * @date 2025-03-12
 */
public interface IFamilyMemberElderService extends IService<FamilyMemberElder>
{
    /**
     * 查询老人与老人家属关联
     * 
     * @param id 老人与老人家属关联主键
     * @return 老人与老人家属关联
     */
    public FamilyMemberElder selectFamilyMemberElderById(Long id);

    /**
     * 查询老人与老人家属关联列表
     * 
     * @param familyMemberElder 老人与老人家属关联
     * @return 老人与老人家属关联集合
     */
    public List<FamilyMemberElder> selectFamilyMemberElderList(FamilyMemberElder familyMemberElder);

    /**
     * 新增老人与老人家属关联
     * 
     * @param familyMemberElder 老人与老人家属关联
     * @return 结果
     */
    public int insertFamilyMemberElder(FamilyMemberElder familyMemberElder);

    /**
     * 修改老人与老人家属关联
     * 
     * @param familyMemberElder 老人与老人家属关联
     * @return 结果
     */
    public int updateFamilyMemberElder(FamilyMemberElder familyMemberElder);

    /**
     * 批量删除老人与老人家属关联
     * 
     * @param ids 需要删除的老人与老人家属关联主键集合
     * @return 结果
     */
    public int deleteFamilyMemberElderByIds(Long[] ids);

    /**
     * 删除老人与老人家属关联信息
     * 
     * @param id 老人与老人家属关联主键
     * @return 结果
     */
    public int deleteFamilyMemberElderById(Long id);

    /**
     * 绑定家人
     */
    void addFamilyMemberElder(FamilyMemberElderDto familyMemberElderDto);

    /**
     * 查询家人列表
     * @return com.zzyl.nursing.vo.FamilyMemberElderVo
     */
    List<FamilyMemberElderVo> listFamilyMemberElder();

    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @return cn.hutool.db.PageResult<java.util.List<?>>
     */
    PageResult<FamilyMemberVo> getFamilyMemberElderList(Integer pageNum, Integer pageSize);

    /**
     * 按天统计查询指标数据
     *
     */
    List<QueryDeviceDataVo> queryDeviceDataListByDay(QueryDeviceDataDto queryDeviceDataDto);

    /**
     * 按周统计查询指标数据
     * @param queryDeviceDataDto
     * @return
     */
    List<QueryDeviceDataVo> queryDeviceDataListByWeek(QueryDeviceDataDto queryDeviceDataDto);

    /**
     * 查询健康数据
     * @param deviceDto
     * @return java.util.List<com.zzyl.nursing.vo.DevicePropertyStatusVo>
     */
    PropertyStatusInfoVoList selectHealthy(DeviceDto deviceDto);
}
